from enum import Enum


class BizErrorType(Enum):
    SYSTEM_ERROR = (137000, 'System Error')

    PARAM_ILLEGAL = (200001, 'Param Illegal')

    def __init__(self, code, msg):
        self.code = code
        self.msg = msg

    def get_code(self):
        return self.code

    def get_msg(self):
        return self.msg
